<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>


<link href="<%=basePath%>/Bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="<%=basePath%>/Bootstrap/css/style.css" rel="stylesheet">


<!-- Bootstrap core CSS -->
<link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">

  <!-- Optional Bootstrap Theme -->
  <link href="data:text/css;charset=utf-8," data-href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">

<%-- <link href="../assets/css/patch.css" rel="stylesheet">

<!-- Documentation extras -->
<link href="<%=basePath%>/bootstrap/assets/css/docs.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="../../bootstrap/assets/js/ie8-responsive-file-warning.js"></script>
<![endif]-->

<script src="<%=basePath%>/bootstrap/assets/js/ie-emulation-modes-warning.js"></script>
 --%>
<!--  以上注解暂时性失效，待调通 -->
 
 
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Bootstrap core CSS -->
  <!-- Optional Bootstrap Theme -->
  <link href="data:text/css;charset=utf-8," data-href="../../bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">

		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->          

<script src="<%=basePath%>/Bootstrap/js/jquery.min.js"></script>
<script src="<%=basePath%>/Bootstrap/js/bootstrap.min.js"></script>
<script src="<%=basePath%>/Bootstrap/js/scripts.js"></script>
</head>
<body>
	<div>
		<div class="bs-example">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>#</th>
						<th>用户名</th>
						<th>性别</th>
						<th>年龄</th>
						<th>联系方式</th>
						<th>地址</th>
						<th colspan="2" align="center">其他操作</th>
					</tr>
				</thead>
				<tbody>
				<c:forEach items="${sessionScope.uuu }" var="eachUser" varStatus="st">
					<tr>
						<td>${st.index+1 }</td>
						<td>${eachUser.user_name }</td>
						<td>${eachUser.user_sex }</td>
						<td>${eachUser.user_age }</td>
						<td>${eachUser.user_tel }</td>
						<td>${eachUser.user_address }</td>
						<td><a href="<%=basePath%>Modify_DeleteInfoServlet?usid${eachUser.user_id }&opt=0">修改</a></td><!--跳转至修改页面  -->
						<td><a href="<%=basePath%>Modify_DeleteInfoServlet?usid${eachUser.user_id }&opt=1"
						       onclick="return confirm('您确认删除用户名为[${eachUser.user_name}]的记录么？')">删除</a></td><!--跳转至删除页面  -->
					</tr>
				</c:forEach>
				</tbody>
			</table>
		</div>
	</div>

	
</body>
</html>